<?php
/**
 * Created by PhpStorm.
 * User: aiChenK
 * Date: 2019-01-03
 * Time: 15:08
 */

namespace Services\Login\Models;

class Auth implements \ArrayAccess
{
    /**
     * @var int 用户id
     */
    public $userId = 0;

    /**
     * @var string 用户名
     */
    public $logonName = '';

    /**
     * @var string 姓名
     */
    public $userName = '';

    /**
     * @var string 手机号
     */
    public $phone = '';

    /**
     * @var int 用户类型
     */
    public $userType = 0;

    /**
     * @var int 学校id
     */
    public $schoolId = 0;

    //todo 删除信息 start
    public $depId   = [];
    public $depTag  = [];
    public $depName = [];
    //删除信息 end

    public function offsetExists($offset)
    {
        return isset($this->$offset);
    }

    public function offsetGet($offset)
    {
        return $this->$offset;
    }

    public function offsetSet($offset, $value)
    {
        $this->$offset = $value;
    }

    public function offsetUnset($offset)
    {
        unset($this->$offset);
    }
}
